import React, { useCallback } from "react";
export default function One(props) {
    let { num, isShow, flag } = props
    function isflag() {
        isShow()
    }
    return (
        <div>
            one:{num}
            <button onClick={isflag}>isShow</button>
            {flag && <div
                style={{
                    width: "100px",
                    height: "100px",
                    backgroundColor: 'red'
                }}
            ></div>}
        </div>
    )
}